package com.design.yjx.factory;

/**
 * @author yuanjianxin
 * @date 2017/8/3 15:24
 */
public class NyPizzaStore extends PizzaStore {
    @Override
    protected Pizza createPizza(String type) {
        switch (type) {
            case "cheese":
                return new NyCheesePizza();
            case "veggie":
                return new NyVeggiePizza();
            case "clam":
                return new NyClamPizza();
            default:
                return null;
        }
    }
}
